package statics;

import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;

public class main {

    static {
        int increment = 0;
        ArrayList<Integer> arrayInteger = new ArrayList<Integer>();
        for (int indexIncrement = 0; indexIncrement < 10; indexIncrement++) {
            increment = increment + 1;
            arrayInteger.add(increment);
        }
        for (int indexPrintArray = 0; indexPrintArray < arrayInteger.size(); indexPrintArray++) {
            System.out.println("" + arrayInteger.get(indexPrintArray));
        }
    }

    static {
        System.out.println("JUAN_CARLOS : STATIC");
    }

    public main() {
    }

    public static void main(String[] args) {
        //main man = new main(); 

        contenedora classContenedore = new contenedora();
        contenedora.InternClass internClass = classContenedore.new InternClass();

        System.out.println("" + internClass.toString());
    }
}

class contenedora {

    class InternClass {

        @Override
        public String toString() {
            return "JUAN_CARLOS_AÑEZ_MEJIAS";
        }

        public void toGetAllDate() {
            List<String> arrayString = new AbstractList<String>() {

                @Override
                public String get(int i) {
                    throw new UnsupportedOperationException("Not supported yet.");
                }

                @Override
                public int size() {
                    throw new UnsupportedOperationException("Not supported yet.");
                }
            };
        }
    }
}
